package com.xzy.mapper;

import com.xzy.custom.Page;
import com.xzy.entities.BookInformation;
import com.xzy.entities.BookType;
import com.xzy.web.form.BookTypeForm;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * TODO70
 *
 * @author Administrator
 * ClassName: BookTypeMapper
 * date: 2021/11/23 15:07
 */
@Repository
public interface BookTypeMapper {

    List<BookType> findAllBookType(@Param("page") Page page,@Param("name") String name);

    BookType findById(@Param("id") Integer id);

    void updateById(@Param("form") BookTypeForm form);

    void insertType(@Param("form") BookTypeForm form);

    void delBookType(@Param("parseInt") int parseInt);

    Integer findBookInformationCount(@Param("page") Page page,@Param("name") String name);

    List<BookType> findAllBookType1();
}
